package s01;

/**
 * @ClassName Demo02
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:10
 * @ModifyDate 2022/8/14 18:10
 * @Version 1.0
 */
public class Demo02 {
    public static void method(Printable p) {
        p.myPrint("Hello World!");
    }

    public static void main(String[] args) {
        method(System.out::println);
    }
}
